/**
 * 接口列表文件
 */
export default {
	scan: {
		result: {
			url: "getBatchResultsList?apipost_id=7280563b9b000",
			auth: false,
			method: "GET",
			// desc: '扫码结果',
		},
		details: {
			url: "getBatchResults?apipost_id=73177d139b004",
			auth: false,
			method: "GET",
			// desc: '扫码结果',
		},
	},

	/** 公共 ↓ **/
	common: {
		region: {
			url: 'common/region',
			auth: false,
			method: "GET",
			// desc: '初始化数据',end
		},
		init: {
			url: "index/init",
			auth: false,
			method: "GET",
			// desc: '初始化数据',end
		},
		chat: {
			url: "chat.index/init",
			auth: false,
			method: "GET",
			// desc: '初始化聊天配置',
		},
		upload: {
			url: "index/upload",
			auth: true,
			method: "POST",
			// desc: '上传图片',
		},
		template: {
			url: "index/template",
			auth: false,
			method: "GET",
			// desc: '模板信息',end
		},
		custom: {
			url: "index/custom",
			auth: false,
			method: "GET",
			// desc: '自定义模板页面',
		},
		live: {
			url: "live",
			auth: false,
			method: "GET",
			// desc: '直播列表',
		},
		wxJssdk: {
			url: "wechat/jssdk",
			auth: false,
			method: "POST",
			// desc: '微信Jssdk',
		},
		syncPages: {
			url: "index/asyncPages",
			auth: false,
			method: "POST",
			// desc: '路由表 DEV开发模式下有效',end
		},
		debug: {
			url: "index/debugLog",
			auth: false,
			method: "POST",
			// desc: '上传DEBUG信息',
		},
		richText: {
			url: "index/richtext",
			auth: false,
			method: "GET",
			// desc: '富文本数据',
		},
		shareAdd: {
			url: "share/add",
			auth: false,
			method: "POST",
			// desc: '添加分享记录',
		},
		smsSend: {
			url: "sms/send",
			auth: false,
			method: "POST",
			// desc: '发送短信',
		},
	},



	/** 分类 ↓ **/
	category: {
		info: {
			url: "category/detail",
			auth: false,
			method: "GET",
			// desc: '分类类别',
		},
		detail: {
			url: "category",
			auth: false,
			method: "GET",
			// desc: '分类详情',
		},
		list: {
			url: "category/list",
			auth: false,
			method: "GET",
			// desc: '首页分类商品列表',
		}
	},

	/** 商品 ↓ **/
	goods: {
		getCategory: {
			url: "user.goods/getCategory",
			auth: false,
			method: "GET",
			// desc: '商品分类',
		},
		lists: {
			url: "user.goods/getList",
			auth: false,
			method: "GET",
			// desc: '商品列表',
		},
		option: {
			url: "user.goods/option",
			auth: false,
			method: "GET",
			// desc: '获取规格',
		},
		detail: {
			url: "user.goods/getDetail",
			auth: false,
			method: "GET",
			// desc: '商品详情',
		},
		storageConfirm: {
			url: "user.storage/storageConfirm",
			auth: false,
			method: "POST",
			// desc: '提交入库',
		},
		getDepotInfo: {
			url: "user.depot/getDepotInfo",
			auth: false,
			method: "GET",
			// desc: '出库--查询出库信息',
		},
		depotConfirm: {
			url: "user.depot/depotConfirm",
			auth: false,
			method: "POST",
			// desc: '出库--提交',
		},
		inquireSearch: {
			url: "user.inquire/search",
			auth: false,
			method: "POST",
			// desc: '查询/批量查询',
		},
		getJigouList: {
			url: "user.inquire/jigouList",
			auth: false,
			method: "GET",
			// desc: '获取机构列表',
		},
		favorite: {
			url: "goods/favorite",
			auth: true,
			method: "POST",
			// desc: '商品收藏',
		},

		storeAddress: {
			url: "goods/store",
			auth: true,
			method: "GET",
			// desc: '商品支持的自提点',
		},
		scoreList: {
			url: "score_goods_sku_price/index",
			auth: false,
			method: "GET",
			// desc: '积分商品列表',
		},
		scoreDetail: {
			url: "score_goods_sku_price/detail",
			auth: false,
			method: "GET",
			// desc: '积分详情',
		},
		commentList: {
			url: "goods_comment/index",
			auth: false,
			method: "GET",
			// desc: '商品评论列表',
		},
		commentType: {
			url: "goods_comment/type",
			auth: false,
			method: "GET",
			// desc: '商品评论分类',
		},
	},

	/** 用户 ↓ **/
	user: {
		logs: {
			url: "user.user/logs",
			auth: true,
			method: "POST",
			// desc: '用户信息',end
		},
		users: {
			url: "user.user/index",
			auth: true,
			method: "POST",
			// desc: '用户信息',end
		},
		bind_phone: {
			url: 'wechat.wechat/bind',
			auth: true,
			method: "POST",
		},
		auth: {
			url: 'wechat.wechat/auth',
			auth: false,
			method: "POST",
		},
		accountLogin: {
			url: "user/accountLogin",
			auth: false,
			method: "POST",
			// desc: '账号密码登录',
		},

		smsLogin: {
			url: "user/smsLogin",
			auth: false,
			method: "POST",
			// desc: '短信登录',
		},

		register: {
			url: "user/register",
			auth: false,
			method: "POST",
			// desc: '注册',
		},

		forgotPwd: {
			url: "user/forgotPwd",
			auth: false,
			method: "POST",
			// desc: '重置密码',
		},

		bindMobile: {
			url: "user/bindMobile",
			auth: true,
			method: "POST",
			// desc: '修改手机号',
		},

		changePwd: {
			url: "user/changePwd",
			auth: true,
			method: "POST",
			// desc: '修改密码',
		},

		info: {
			url: "user",
			auth: true,
			method: "GET",
			// desc: '用户信息',
		},
		profile: {
			url: "user/profile",
			auth: true,
			method: "POST",
			// desc: '修改用户信息',
		},
		depotLog: {
			url: "user.depot/depotLog",
			auth: true,
			method: "POST",
			// desc: '查询记录',
		},
		logout: {
			url: "user/logout",
			auth: true,
			method: "POST",
			// desc: '退出登录',
		},

		getWxMiniProgramSessionKey: {
			url: "user/getWxMiniProgramSessionKey",
			auth: false,
			method: "POST",
			// desc: '获取用户session_key',
		},

		wxMiniProgramOauth: {
			url: "user/wxMiniProgramOauth",
			auth: false,
			method: "POST",
			// desc: '微信小程序登录',
		},

		wxOpenPlatformOauth: {
			url: "user/wxOpenPlatformOauth",
			auth: false,
			method: "POST",
			// desc: '微信APP登录',
		},

		thirdOauthInfo: {
			url: "user/thirdOauthInfo",
			auth: true,
			method: "GET",
			// desc: '第三方绑定信息',
		},
		unbindThirdOauth: {
			url: "user/unbindThirdOauth",
			auth: true,
			method: "POST",
			// desc: '解绑信息',
		},

		signList: {
			url: "user_sign/index",
			auth: true,
			method: "GET",
			// desc: '签到记录',
		},
		sign: {
			url: "user_sign/sign",
			auth: true,
			method: "POST",
			// desc: '签到',
		},
		messageIds: {
			url: "notification/template",
			auth: false,
			method: "GET",
			// desc: '订阅消息模板ids',
		},
		favoriteList: {
			url: "goods/favoriteList",
			auth: true,
			method: "GET",
			// desc: '商品收藏列表',
		},
		viewList: {
			url: "goods/viewList",
			auth: true,
			method: "GET",
			// desc: '足迹列表',end
		},
		viewDelete: {
			url: "goods/viewDelete",
			auth: true,
			method: "POST",
			// desc: '删除足迹',end
		},
		userData: {
			url: "user/userData",
			auth: true,
			method: "GET",
			// desc: '用户其他信息',
		},
		appleIdOauth: {
			url: "user/appleIdOauth",
			auth: false,
			method: "POST",
			// desc: 'appleId授权',
		}
	},

	/** 位置 ↓ **/
	address: {
		add: {
			url: 'user.address/add',
			auth: true,
			method: "POST",
			// desc: '修改地址',
		},
		area: {
			url: "address/area",
			auth: false,
			method: "GET",
			// desc: '省市区',
		},
		list: {
			url: "user.address/getList",
			auth: true,
			method: "GET",
			// desc: '地址列表',
		},
		edit: {
			url: "user.address/edit",
			auth: true,
			method: "POST",
			// desc: '修改地址',
		},
		defaults: {
			url: "address/defaults",
			auth: true,
			method: "GET",
			// desc: '默认地址',
		},
		info: {
			url: "user.address/getDetail/id/",
			auth: true,
			method: "GET",
			// desc: '地址详情',
		},
		del: {
			url: "address/del",
			auth: true,
			method: "POST",
			// desc: '删除',
		},
	},


	/** 购物车 ↓ **/
	cart: {
		index: {
			url: "user.cart/lst",
			auth: true,
			method: "GET",
			// desc: '购物车商品列表',
		},
		count: {
			url: "user.cart/count",
			auth: true,
			method: "GET",
			// desc: '购物车商品数量',
		},
		add: {
			url: "user.cart/setcart",
			auth: true,
			method: "POST",
			// desc: '添加购物车',
		},
		jiesuan: {
			url: "user.cart/jiesuan",
			auth: true,
			method: "POST",
			// desc: '购物车 结算',
		},
		num: {
			url: "user.cart/num",
			auth: true,
			method: "POST",
			// desc: '购物车 修改数量',
		},
		del: {
			url: "user.cart/del",
			auth: true,
			method: "POST",
			// desc: '购物车 删除',
		},
		clear: {
			url: "user.cart/clear",
			auth: true,
			method: "GET",
			// desc: '清空购物车',
		},
	},

	/** 订单 ↓ **/
	order: {
		order_too:{
			url:'user.order/again',
			auth: true,
			method: "POST",
			//desc:再来一单
		},
		order_pay: {
			url: 'user.order/pay',
			auth: true,
			method: "POST",
			//desc:支付
		},
		createOrder: {
			url: 'user.order/confirm',
			auth: true,
			method: "POST",
			// desc: '直接下单',
		},
		order_buyone: {
			url: 'user.order/buyone',
			auth: true,
			method: "POST",
			// desc: '直接下单',
		},
		order_list: {
			url: 'user.order/lst',
			auth: true,
			method: "GET",
			// desc: '订单列表',
		},
		index: {
			url: "order/index",
			auth: true,
			method: "GET",
			// desc: '订单列表',
		},
		pre: {
			url: "order/pre",
			auth: true,
			method: "POST",
			// desc: '预备提交订单',
		},
		// createOrder: {
		// 	url: "order/createOrder",
		// 	auth: true,
		// 	method: "POST",
		// 	// desc: '提交订单',
		// },
		detail: {
			url: "user.order/detail/",
			auth: true,
			method: "GET",
			// desc: '订单详情',
		},
		itemDetail: {
			url: "order/itemDetail",
			auth: true,
			method: "GET",
			// desc: '订单商品详情',
		},
		confirm: {
			url: "user.order/confirmOrder",
			auth: true,
			method: "POST",
			// desc: '确认收货',
		},
		cancel: {
			url: "user.order/cancel",
			auth: true,
			method: "POST",
			// desc: '取消订单',
		},
		comment: {
			url: "order/comment",
			auth: true,
			method: "POST",
			// desc: '评价商品',
		},
		aftersale: {
			url: "order_aftersale/aftersale",
			auth: true,
			method: "POST",
			// desc: '申请售后',
		},
		aftersaleList: {
			url: "order_aftersale/index",
			auth: true,
			method: "GET",
			// desc: '售后列表',
		},
		aftersaleDetail: {
			url: "order_aftersale/detail",
			auth: true,
			method: "GET",
			// desc: '售后列表详情',
		},
		deleteOrder: {
			url: "order/delete",
			auth: true,
			method: "POST",
			// desc: '删除订单',
		},
		deleteAftersaleOrder: {
			url: "order_aftersale/delete",
			auth: true,
			method: "POST",
			// desc: '删除售后订单',
		},
		cancelAftersaleOrder: {
			url: "order_aftersale/cancel",
			auth: true,
			method: "POST",
			// desc: '取消售后订单',
		},
		expressList: {
			url: "order_express/index",
			auth: true,
			method: "GET",
			// desc: '包裹列表',
		},
		expressDetail: {
			url: "order_express/detail",
			auth: true,
			method: "GET",
			// desc: '包裹详情',
		},
		itemDetail: {
			url: "order/itemDetail",
			auth: true,
			method: "GET",
			// desc: '订单商品详情',
		}
	},

	/** 支付金钱 ↓ **/
	money: {
		prepay: {
			url: "pay/prepay",
			auth: true,
			method: "POST",
			// desc: '发起支付',
		},
		walletApply: {
			url: "user_wallet_apply/apply",
			auth: true,
			method: "POST",
			// desc: '申请提现',end
		},
		walletRule: {
			url: "user_wallet_apply/rule",
			auth: true,
			method: "GET",
			// desc: '提现规则',end
		},
		walletLog: {
			url: "user_wallet_log",
			auth: true,
			method: "GET",
			// desc: '钱包,积分明细',end
		},
	},
	// 活动
	activity: {
		activity: {
			url: "activity.activity/list",
			auth: false,
			method: "POST",
			// desc: '活动培训列表',
		},
		detail: {
			url: "activity.activity/detail",
			auth: false,
			method: "POST",
			// desc: '活动培训详情',
		},
		needPay: {
			url: "user.share/needPay",
			auth: true,
			method: "POST",
			// desc: '是否需要支付积分',
		},
		payScore: {
			url: "user.share/payScore",
			auth: true,
			method: "POST",
			// desc: '技术分享支付积分',
		},
		apply: {
			url: "activity.activity/apply",
			auth: true,
			method: "POST",
			// desc: '参与报名',
		},
		share_detail: {
			url: "user.share/detail",
			auth: true,
			method: "POST",
			// desc: '用户详情',
		},
		mylist: {
			url: "user.share/mylist",
			auth: true,
			method: "POST",
			// desc: '技术分享列表',
		},
		publish: {
			url: "user.share/publish",
			auth: true,
			method: "POST",
			// desc: '技术分享列表',
		},
		share_detail: {
			url: "user.share/detail",
			auth: true,
			method: "POST",
			// desc: '详情',
		},
		share_del: {
			url: "user.share/del",
			auth: true,
			method: "POST",
			// desc: '详情',
		},
		getConfig: {
			url: "common/getConfig",
			auth: false,
			method: "POST",
			// desc: '详情',
		},
		setTop: {
			url: "user.share/setTop",
			auth: true,
			method: "POST",
			// desc: '详情',
		},
		getqrcode: {
			url: "user.user/getqrcode",
			auth: true,
			method: "POST",
			// desc: '详情',
		},
		















	},
};